import Layout from '@/layout'
export default [
  {
    path: '/student',
    component: Layout,
    redirect: '/student/index',
    name: 'student',
    meta: { title: '学生管理', icon: 'example' },
    children: [
      {
        path: 'index',
        name: 'student-index',
        component: () => import('@/views/student/index'),
        meta: { title: '学生管理', icon: 'form' }
      },
      {
        path: 'create',
        name: 'student-create',
        component: () => import('@/views/student/create'),
        meta: { title: '新增学生', icon: 'form' }
      },
      {
        path: 'edit/:id',
        hidden: true,
        name: 'student-edit',
        component: () => import('@/views/student/create'),
        meta: { title: '编辑学生', icon: 'form' }
      }
    ]
  }
]
